package com.atcumt.redbook;

import java.util.Arrays;
import java.util.Scanner;

/* 
 * 3 3
 * 3 2 1
 * 
 * 4
 */
public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int k = in.nextInt();
        long[] nums = new long[n];
        for (int i = 0; i < n; i++) {
            nums[i] = in.nextLong();
        }

        Arrays.sort(nums);
        long a = 0;
        int count = 0;
        for (int i = n - 1; i >= 0; i--) {
            for (int j = i - 1; j >= 0; j--) {
                a = nums[i] * nums[j];
                if (a >= k) {
                    count++;
                }
                if (a < k) {
                    break;
                }
            }
        }
        System.out.println(count * 2);
        in.close();
    }
}
